﻿using EPiServer;

namespace EPiSugar.Content
{
    public static class ContentGeneratorExtensions
    {
        public static ContentGenerator Content(this UserControlBase userControl)
        {
            return new ContentGenerator(userControl.Page, userControl.PageBase);
        }
        public static ContentGenerator Content(this PageBase page)
        {
            return new ContentGenerator(page, page);
        }
    }
}
